package com.strange.mdl.module.mdl.controller.admin.activity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.strange.mdl.framework.excel.core.annotations.DictFormat;
import com.strange.mdl.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 活动用户参与记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ActivityUserRespVO {

    @Schema(description = "活动ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16170")
    @ExcelProperty("活动ID")
    private Long activityId;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32560")
    @ExcelProperty("用户ID")
    private Long userId;

    @Schema(description = "参与状态：0-报名中；1-已取消；2-已签到；3-待审核；4-已拒绝", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "参与状态：0-报名中；1-已取消；2-已签到；3-待审核；4-已拒绝", converter = DictConvert.class)
    @DictFormat("activity_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "报名时间")
    @ExcelProperty("报名时间")
    private LocalDateTime signupTime;

    @Schema(description = "取消时间")
    @ExcelProperty("取消时间")
    private LocalDateTime cancelTime;

    @Schema(description = "是否签到：0-否；1-是", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否签到：0-否；1-是", converter = DictConvert.class)
    @DictFormat("checked_in") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer checkedIn;

    @Schema(description = "角色：0-普通参与者；1-组织者；2-管理员", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "角色：0-普通参与者；1-组织者；2-管理员", converter = DictConvert.class)
    @DictFormat("activity_role") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer role;

}